﻿declare
	allowStores1=["www.cnblogs.com", "www.cnblogs1.com", "www.cnblogs2.com"]
	allowStores2=["www.cnblogs.com", "www.cnblogs1.com", "www.cnblogs2.com"]
end declare
rule "rule 1"
	when
		!allowStores1.contains(entity.StoreID)
	then
		errors.Add("StoreID", "StoreID value not right")
end rule
rule "rule 2"
	when
		!allowStores2.contains(entity.StoreID)
	then
		errors.Add("StoreID", "StoreID value not right")
end rule